package com.hxzy.shop.dto.freight.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class ExpressFreightRuleReq implements Serializable {
    private static final long serialVersionUID = -6754151984522109392L;

    @ApiModelProperty("基础件数")
    @NotNull(message = "基础件数不能为空")
    private Integer numberOfBasicPieces;

    @ApiModelProperty("基础件数运费")
    @NotNull(message = "基础件数运费不能为空")
    private BigDecimal basicUnitFreight;

    @ApiModelProperty("续件件数")
    @NotNull(message = "续件件数不能为空")
    private Integer numberOfRenewalPieces;

    @ApiModelProperty("续件件数运费")
    @NotNull(message = "续件件数运费不能为空")
    private BigDecimal numberOfRenewalAndFreight;

    @ApiModelProperty("快递运费区域id集合")
    @NotNull(message = "快递运费区域id集合不能为空")
    private List<Long> expressFreightAreaIds;
}
